package com.topc.problem.model.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Accessors(chain = true)
public class SaveProblemComposeDto {

    private Long id;

    @NotNull
    private String userNumber;

    @NotNull
    private String description;

    @NotNull
    private String title;

    @NotNull
    private List<Long> problemIdList;

    @NotNull
    @Min(0)
    @Max(1)
    private int isPrivate;

}
